package com.zmc.coupon.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.common.utils.PageUtils;
import com.zmc.coupon.infrastructure.bean.query.CouponSkuQuery;
import com.zmc.coupon.infrastructure.bean.vo.CouponReceiveVo;
import com.zmc.coupon.infrastructure.bean.vo.CouponSkuVo;
import com.zmc.coupon.infrastructure.entity.CouponSkuEntity;

import java.util.List;

/**
 * 优惠券与产品关联
 *
 * @author zmc
 * @email 
 * @date 2024-10-09 14:59:36
 */
public interface CouponSkuService extends IService<CouponSkuEntity> {

    PageUtils queryPage(CouponSkuQuery query);

    List<CouponSkuEntity> queryList(CouponSkuQuery query);

    CouponSkuEntity getSpuRelation(CouponReceiveVo vo);

    void removeByCouponId(Long couponId);

    List<CouponSkuEntity> getByCouponIdAndSkuId(List<CouponSkuVo> collect);

    List<CouponSkuEntity> getBySkuIds(List<String> skuIds);

    List<String> getByCouponId(Long couponId);

}

